package com.tw.entity;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;

public class Teacher {
    private String tname;
    private Course[] tcourse;
    private List<Student> tstudent;

    @Override
    public String toString() {
        return "Teacher{" +
                "tname='" + tname + '\'' +
                ", tcourse=" + Arrays.toString(tcourse) +
                ", tstudent=" + tstudent +
                '}';
    }

    public Teacher(String tname, Course[] tcourse, List<Student> tstudent) {
        this.tname = tname;
        this.tcourse = tcourse;
        this.tstudent = tstudent;
    }

    public Teacher() {
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Course[] getTcourse() {
        return tcourse;
    }

    public void setTcourse(Course[] tcourse) {
        this.tcourse = tcourse;
    }

    public List<Student> getTstudent() {
        return tstudent;
    }

    public void setTstudent(List<Student> tstudent) {
        this.tstudent = tstudent;
    }
}
